package com.cmos.service;

import com.cmos.entity.Role;
import com.cmos.entity.RolePrivilege;

import java.util.List;

public interface RoleService {
    int saveRole(Role role, String[] ids);

    int removeRole(String id);

    int changeRole(Role role, String[] ids);

    Role queryRole(Role role);

    List<Role> queryAllRole();

    Integer saveRolePrivilege(List<RolePrivilege> rolePrivileges);

    Integer removeRolePrivilege(String roleId);
}
